<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        img {
            /* 居中对齐 其他属性：bottom base top */
            vertical-align: middle;
        }
    </style>
</head>

<body>
    <img src="images/bg1.png" alt="">我是文本框
</body>

</html>